(chrome.extension.onMessage || chrome.extension.onRequest).addListener(
function onOptionsRequest(message, sender, sendResponse)
{
	var response = {};
	if(message.name && message.name == "getOptions" && message.optionNames)
	{
		if(message.optionNames.indexOf("Blocking.PostsByUsers") != -1)
			response.PostsByUsers = Options.Blocking.PostsByUsers;
		if(message.optionNames.indexOf("Blocking.SignaturesOfUsers") 
			!= -1)
			response.SignaturesOfUsers = Options.Blocking.SignaturesOfUsers;
		if(message.optionNames.indexOf("Blocking.PhotosOfUsers") != -1)
			response.PhotosOfUsers = Options.Blocking.PhotosOfUsers;
		if(message.optionNames.indexOf(
			"Blocking.ImagesInPostsByUsers") != -1)
			response.ImagesInPostsByUsers = 
				Options.Blocking.ImagesInPostsByUsers;
		if(message.optionNames.indexOf("SignIn.NoWaitAfterSignIn") != -1)
			response.NoWaitAfterSignIn = Options.SignIn.NoWaitAfterSignIn;
		if(message.optionNames.indexOf("UI.HideHotlist2") != -1)
			response.HideHotlist2 = Options.UI.HideHotlist2;
		if(message.optionNames.indexOf("UI.HideAuthorsInHotlist") != -1)
			response.HideAuthorsInHotlist = Options.UI.HideAuthorsInHotlist;
		if(message.optionNames.indexOf("UI.SimpleRead") != -1)
			response.SimpleRead = Options.UI.SimpleRead;
	}
	sendResponse(response);
});

